 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"         
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html 
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core" 
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j">
	
	
	<h:head>
		<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
		<title>
			<ui:insert name="titulo">
				<h:outputText value="#{msgs['tituloAplicacao']}"/>
			</ui:insert>
		</title>
		<link rel="shortcut icon" href="#{request.contextPath}/img/bird16.png" />
		<link type="text/css" rel="stylesheet" href="#{request.contextPath}/css/defaultStylesheet.css" />
		<link type="text/css" rel="stylesheet" href="#{request.contextPath}/css/printStylesheet.css" media="print"/>
	</h:head>
	
	<body>
		<f:view>
			<table width="100%" cellpadding="0" cellspacing="5">
				<tr style="height: 100%; vertical-align: top;">
					<td colspan="2">
						<rich:toolbar width="100%" height="45px">
							<rich:toolbarGroup location="left">
								<img src="#{request.contextPath}/img/bird128.png" alt="web-ponto logo" height="80px" width="80px"/> <h:outputText value="#{msgs['tituloAplicacao']}" style="font-size:15px; white-space: nowrap;"/>
							</rich:toolbarGroup>
							<rich:toolbarGroup location="right">
								<h:form id="skinForm" style="text-align:right">
									<h:outputText value="Bem vindo(a) #{usuarioMB.usuario.nome}"/>
									<br/><br/>
									<h:panelGroup>
										<h:outputLabel for="skinSelectOneMenu" value="Tema:" style="margin-right: 5px;"/>
										<h:selectOneMenu id="skinSelectOneMenu" value="#{usuarioMB.skin}" onchange="submit();">
											<f:selectItem itemLabel="Emerald Town" itemValue="emeraldTown"/>
											<f:selectItem itemLabel="Blue Sky" itemValue="blueSky"/>
											<f:selectItem itemLabel="Ruby" itemValue="ruby"/>
											<f:selectItem itemLabel="Wine" itemValue="wine"/>
											<f:selectItem itemLabel="Japan Cherry" itemValue="japanCherry"/>
											<f:selectItem itemLabel="Deep Marine" itemValue="deepMarine"/>
											<f:selectItem itemLabel="Classic" itemValue="classic"/>
											<f:selectItem itemLabel="Plain" itemValue="plain"/>
										</h:selectOneMenu>
									</h:panelGroup>
									<br/>
									<h:commandLink value="Logout" action="#{usuarioMB.logout}" rendered="#{!empty usuarioMB.usuario}"/>
								</h:form>
							</rich:toolbarGroup>
						</rich:toolbar>
					</td>
				</tr>
				<tr style="height: 100%; vertical-align: top;">
					<a4j:outputPanel rendered="#{!empty usuarioMB.usuario}">
						<td id="menu" width="200px">
							<ui:include src="/default/rich-menu.xhtml"/>
						</td>
					</a4j:outputPanel>
					<td id="workarea" colspan="#{(!empty usuarioMB.usuario) ? '1' : '2'}">
						<rich:panel style="#{(!empty usuarioMB.usuario) ? (no_panel eq 'true' ? 'border:none; background:transparent;' : '' ) : 'border:none; background:transparent;'}">
							<f:facet name="header">
								<ui:insert name="titulo"/>
							</f:facet>
							<rich:messages id="messages" styleClass="label no_print"/>
							<ui:insert name="body">
								CONTENT
							</ui:insert>
						</rich:panel>
					</td>
				</tr>
			</table>
		</f:view>
	</body>
</html>